|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.dto.AttributeTypeInfoDTO
Represents most of a xs:element for an XMLSchema.
we have three types of information to store, Schema defined types, references and extentions on types. If the type represented is either a reference or a Schema defined type then isRef should be true.
Non-complex types are of the form:
{element name='test' type='xs:string'/}
{element name='test' type='gml:PointType'/}
For complex types such as {element
name='test'}{xs:complexContent}{xs:extension
base="gml:AbstractFeatureType"}{xs:sequence}{xs:element name="id"
type="xs:string" minOccurs="0"/}{xs:element ref="gml:pointProperty"
minOccurs="0"/}{/xs:sequence}{/xs:extension}{/xs:complexContent}{/element}
The type contains a similar XML fragment.
minOccurs, maxOccurs and nillable are all attributes for all cases. There is more stuff in the XMLSchema spec but we don't care.
Constructor Summary | |
AttributeTypeInfoDTO()
AttributeTypeInfoDTO constructor. |
|
AttributeTypeInfoDTO(AttributeTypeInfoDTO dto)
AttributeTypeInfoDTO constructor. |
Method Summary | |
java.lang.Object |
clone()
Implement clone. |
boolean |
equals(java.lang.Object obj)
Implement equals. |
int |
getMaxOccurs()
getMaxOccurs purpose. |
int |
getMinOccurs()
getMinOccurs purpose. |
java.lang.String |
getName()
getName purpose. |
java.lang.String |
getType()
getType purpose. |
int |
hashCode()
Implement hashCode. |
boolean |
isComplex()
isRef purpose. |
boolean |
isNillable()
isNillable purpose. |
void |
setComplex(boolean b)
setRef purpose. |
void |
setMaxOccurs(int i)
setMaxOccurs purpose. |
void |
setMinOccurs(int i)
setMinOccurs purpose. |
void |
setName(java.lang.String string)
setName purpose. |
void |
setNillable(boolean b)
setNillable purpose. |
void |
setType(java.lang.String string)
setType purpose. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeTypeInfoDTO()
Default constructor, does nothing
public AttributeTypeInfoDTO(AttributeTypeInfoDTO dto)
Copies the data from the specified DTO to this one.
dto
- AttributeTypeInfoDTO The data source to copy from.Method Detail |
public boolean equals(java.lang.Object obj)
true when the data contained inside the objects is the same.
equals
in interface DataTransferObject
obj
- an instance of AttributeTypeInfoDTO to compare
Object.equals(java.lang.Object)
public int hashCode()
The hashcode for this object.
hashCode
in interface DataTransferObject
Object.hashCode()
public java.lang.Object clone()
An instance of AttributeTypeInfoDTO which is the same as this one.
clone
in interface DataTransferObject
Object.clone()
public boolean isComplex()
Returns is this is a reference element type or a document defined type.
public int getMaxOccurs()
The max number of occurences for this element.
public int getMinOccurs()
the min number of occurences for this element
public java.lang.String getName()
returns the element name
public boolean isNillable()
Description ...
public java.lang.String getType()
returns the element type. This is an XML fragment if isRef() returns false.
public void setComplex(boolean b)
Sets whether this is a reference type element or not
b
- true when this is a reference type element.public void setMaxOccurs(int i)
Stores the max occurs for the element
i
- the max occurs for the elementpublic void setMinOccurs(int i)
Stores the min occurs for the element
i
- the min occurs for the elementpublic void setName(java.lang.String string)
Stores the name for the element
string
- the name for the elementpublic void setNillable(boolean b)
Stores if this element is nillable
b
- true when this element is nillablepublic void setType(java.lang.String string)
Stores the type for this element. This is an XML fragment when isRef() returns false.
string
- type for this element. This is an XML fragment when
isRef() returns false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |