|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ckkloverdos.source.SourceType
public class SourceType
Type representation for sources.
ISource| Constructor Summary | |
|---|---|
SourceType(java.lang.String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true iff other has the same name
as this type. |
java.lang.String |
getContentSubtype()
Returns the Content Subtype for this type. |
java.lang.String |
getContentType()
Returns the Content Type for this type. |
java.lang.String |
getName()
Returns the name of this type. |
int |
hashCode()
|
boolean |
is(SourceType other)
Returns true iff the other type has the same name as
this one. |
boolean |
isContentSubtype(SourceType other)
Returns true iff the other type has the same
Content Subtype as this one. |
boolean |
isContentSubtype(java.lang.String other)
Returns true iff other equals the
Content Subtype of this instance. |
boolean |
isContentType(SourceType other)
Returns true iff the other type has the same
Content Type as this one. |
boolean |
isContentType(java.lang.String other)
Returns true iff other equals the
Content Type of this instance. |
boolean |
isText()
Returns true iff the Content Type of this instance is "text". |
boolean |
isTextOverride()
Returns true if setTextOverride() has been called. |
SourceType |
setTextOverride()
Make isText() always return true, regardless of the Content Type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceType(java.lang.String name)
| Method Detail |
|---|
public boolean is(SourceType other)
true iff the other type has the same name as
this one.
other - public boolean isContentType(SourceType other)
true iff the other type has the same
Content Type as this one.
other - public boolean isContentType(java.lang.String other)
true iff other equals the
Content Type of this instance.
other - public boolean isContentSubtype(SourceType other)
true iff the other type has the same
Content Subtype as this one.
other - public boolean isContentSubtype(java.lang.String other)
true iff other equals the
Content Subtype of this instance.
other - public java.lang.String getName()
public java.lang.String getContentType()
content-type/content-subtype(notice the slash) then the string
content-type is returned, otherwise the whole name
of this type is returned.
public java.lang.String getContentSubtype()
content-type/content-subtype(notice the slash) then the string
content-subtype is returned, otherwise the whole name
of this type is returned.
public boolean isText()
true iff the Content Type of this instance is "text".
public boolean equals(java.lang.Object o)
true iff other has the same name
as this type.
equals in class java.lang.Objecto - public int hashCode()
hashCode in class java.lang.Objectpublic boolean isTextOverride()
true if setTextOverride() has been called.
public SourceType setTextOverride()
isText() always return true, regardless of the Content Type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||