WebLogic Integration


com.bea.schema.type
Class SOMElementalType

java.lang.Object
  |
  +--com.bea.schema.SOMObject
        |
        +--com.bea.schema.type.SOMType
              |
              +--com.bea.schema.type.SOMElementalType
Direct Known Subclasses:
DerivedENTITY, PrimitiveAnyURI, PrimitiveBase64Binary, PrimitiveBinary, PrimitiveBoolean, PrimitiveDate, PrimitiveDateTime, PrimitiveDecimal, PrimitiveDouble, PrimitiveDuration, PrimitiveENTITY, PrimitiveFloat, PrimitiveGDay, PrimitiveGMonth, PrimitiveGMonthDay, PrimitiveGYear, PrimitiveGYearMonth, PrimitiveHexBinary, PrimitiveID, PrimitiveIDREF, PrimitiveNumber, PrimitiveQName, PrimitiveRecurringDuration, PrimitiveString, PrimitiveTime, PrimitiveTimeDuration, PrimitiveUriReference

public abstract class SOMElementalType
extends SOMType

abstract base class for all Primitive and Derived types.

Author:
Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
Serialized Form

Fields inherited from class com.bea.schema.type.SOMType
ANYURI, BASE64BINARY, BINARY, BOOLEAN, BYTE, CDATA, CENTURY, DATE, DATETIME, DECIMAL, DOUBLE, DURATION, ENTITIES, ENTITY, FLOAT, GDAY, GMONTH, GMONTHDAY, GYEAR, GYEARMONTH, HEXBINARY, ID, IDREF, IDREFS, INT, INTEGER, LANGUAGE, LONG, MONTH, NAME, NCNAME, NEGATIVEINTEGER, NMTOKEN, NMTOKENS, NONNEGATIVEINTEGER, NONPOSITIVEINTEGER, NORMALIZEDSTRING, NOTATION, NUMBER, POSITIVEINTEGER, QNAME, RECURRINGDATE, RECURRINGDAY, RECURRINGDURATION, SHORT, STRING, TIME, TIMEDURATION, TIMEINSTANT, TIMEPERIOD, TOKEN, UNSIGNEDBYTE, UNSIGNEDINT, UNSIGNEDLONG, UNSIGNEDSHORT, URIREFERENCE, YEAR
 
Constructor Summary
SOMElementalType()
           
 
Method Summary
 java.lang.String createDefault(java.util.Map restrictions)
           
 java.util.Map getTypeRestrictions()
           
 boolean isElementalType()
          overrides SOMType method and returns true
 boolean isSchemaChild()
          ElementalType's are always root level objects.
 boolean isValid(java.lang.String value, java.util.Map restrictions)
          validate the content.
 void toXML(java.io.Writer rtn, int indent)
           
 
Methods inherited from class com.bea.schema.type.SOMType
getAllowedFacets, getType, isUserDefinedType
 
Methods inherited from class com.bea.schema.SOMObject
addChild, attributesToXML, doIndent, getID_UQ, getID, getParent, getParentSchema, isCircularReference, setIndent, setParent, toString, toXML, toXML, toXML, trace, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOMElementalType

public SOMElementalType()
Method Detail

toXML

public void toXML(java.io.Writer rtn,
                  int indent)
           throws java.io.IOException

Overrides:
toXML in class SOMObject

isElementalType

public boolean isElementalType()
overrides SOMType method and returns true

Returns:
returns true
Overrides:
isElementalType in class SOMType
See Also:
SOMType.isElementalType()

isSchemaChild

public boolean isSchemaChild()
ElementalType's are always root level objects.

Returns:
true - overrides SOMObject
Overrides:
isSchemaChild in class SOMObject

getTypeRestrictions

public java.util.Map getTypeRestrictions()

isValid

public boolean isValid(java.lang.String value,
                       java.util.Map restrictions)
validate the content. External restrictions override the internal type restrictions to attempt to validate the content of value.

Parameters:
value - content to be validated
restrictions - a Map of SOMFacet values
Returns:
true if the content of value meets the type and external restrictions

createDefault

public java.lang.String createDefault(java.util.Map restrictions)

WebLogic Integration

WebLogic Integration (WLI)