|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.exolab.castor.builder.types.XSType
org.exolab.castor.builder.types.AbstractPatternFacet
org.exolab.castor.builder.types.AbstractWhiteSpaceFacet
public abstract class AbstractWhiteSpaceFacet
A base class for types which support the whiteSpace and pattern facets.
| Field Summary |
|---|
| Fields inherited from class org.exolab.castor.builder.types.XSType |
|---|
ANYURI_TYPE, BASE64BINARY_TYPE, BOOLEAN_TYPE, BYTE_TYPE, CLASS, COLLECTION, DATE_TYPE, DATETIME_TYPE, DECIMAL_TYPE, DOUBLE_TYPE, DURATION_TYPE, ENTITIES, ENTITY, FLOAT_TYPE, GDAY_TYPE, GMONTH_TYPE, GMONTHDAY_TYPE, GYEAR_TYPE, GYEARMONTH_TYPE, HEXBINARY_TYPE, ID_TYPE, IDREF_TYPE, IDREFS_TYPE, INT_TYPE, INTEGER_TYPE, LANGUAGE_TYPE, LONG_TYPE, NAME_TYPE, NCNAME_TYPE, NEGATIVE_INTEGER_TYPE, NMTOKEN_TYPE, NMTOKENS_TYPE, NON_NEGATIVE_INTEGER_TYPE, NON_POSITIVE_INTEGER_TYPE, NORMALIZEDSTRING_TYPE, NOTATION_TYPE, NULL, POSITIVE_INTEGER_TYPE, QNAME_TYPE, SHORT_TYPE, STRING_TYPE, TIME_TYPE, TOKEN_TYPE, UNSIGNED_BYTE_TYPE, UNSIGNED_INT_TYPE, UNSIGNED_LONG_TYPE, UNSIGNED_SHORT_TYPE |
| Constructor Summary | |
|---|---|
protected |
AbstractWhiteSpaceFacet()
No-arg constructor. |
protected |
AbstractWhiteSpaceFacet(boolean whiteSpaceCollapseOnly)
Construct a new AbstractXSPatternFacet optionally allowing the whiteSpace facet to be set to 'replace' and 'preserve' values in addition to 'collaps'. |
| Method Summary | |
|---|---|
protected void |
codeWhiteSpaceFacet(JSourceCode jsc,
java.lang.String validatorName)
Generate the source code for pattern facet validation. |
java.lang.String |
getWhiteSpace()
Returns the whiteSpace facet of this type. |
boolean |
hasWhiteSpace()
Returns true if the whiteSpace facet is used. |
protected void |
setFacet(Facet facet)
Set the given facet for XSType if applicable. |
void |
setWhiteSpace(java.lang.String value)
Sets the whiteSpace facet of this XSType. |
protected void |
setWhiteSpaceFacet(Facet facet)
Transfer given facet if it is a whiteSpace. |
| Methods inherited from class org.exolab.castor.builder.types.AbstractPatternFacet |
|---|
addPattern, addPatternFacet, codePatternFacet, getPatterns |
| Methods inherited from class org.exolab.castor.builder.types.XSType |
|---|
createDefaultValueWithString, createFromJavaObjectCode, createToJavaObjectCode, getJType, getName, getType, isCollection, isDateTime, isEnumerated, isPrimitive, newInstanceCode, setAsEnumerated, setFacets, validationCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractWhiteSpaceFacet()
protected AbstractWhiteSpaceFacet(boolean whiteSpaceCollapseOnly)
whiteSpaceCollapseOnly - If set to true only 'collapse' is allowed for the whiteSpace
facet. If set to false 'collaps', 'replace' and 'preserve' values are allowed for
whiteSpace facet.| Method Detail |
|---|
public final boolean hasWhiteSpace()
public final java.lang.String getWhiteSpace()
public final void setWhiteSpace(java.lang.String value)
value - The value for the whiteSpace facet.protected void setFacet(Facet facet)
setFacet in class AbstractPatternFacetfacet - The facet to set for XSType.protected final void setWhiteSpaceFacet(Facet facet)
facet - The facet to transfer.
protected final void codeWhiteSpaceFacet(JSourceCode jsc,
java.lang.String validatorName)
jsc - The JSourceCode to fill in.validatorName - The name of the TypeValidator that the whiteSpace should be added to.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||