Class CMXSDAttributeDeclaration
- java.lang.Object
-
- org.eclipse.lemminx.extensions.xsd.contentmodel.CMXSDAttributeDeclaration
-
- All Implemented Interfaces:
CMAttributeDeclaration
public class CMXSDAttributeDeclaration extends Object implements CMAttributeDeclaration
XSD attribute declaration implementation.
-
-
Constructor Summary
Constructors Constructor Description CMXSDAttributeDeclaration(CMXSDElementDeclaration cmElement, org.apache.xerces.xs.XSAttributeUse attributeUse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeNameDocumentation(ISharedSettingsRequest request)Returns formatted documentation of the declared attribute according to settings defined inrequestStringgetAttributeValueDocumentation(String value, ISharedSettingsRequest request)Returns formatted documentation aboutvalue, according to settings defined inrequestStringgetDefaultValue()Returns the default value of the declared attribute and null otherwise.Collection<String>getEnumerationValues()Returns enumeration values of the declared attribute and empty collection otherwise.StringgetLocalName()Returns the declared attribute local name.StringgetNamespace()Returns the target namespace and null otherwise.CMElementDeclarationgetOwnerElementDeclaration()Returns the owner element declaration.StringgetPrefix()booleanisRequired()Returns true if the attribute is required and false otherwise.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.lemminx.extensions.contentmodel.model.CMAttributeDeclaration
getName, getName
-
-
-
-
Constructor Detail
-
CMXSDAttributeDeclaration
public CMXSDAttributeDeclaration(CMXSDElementDeclaration cmElement, org.apache.xerces.xs.XSAttributeUse attributeUse)
-
-
Method Detail
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceCMAttributeDeclaration
-
getLocalName
public String getLocalName()
Description copied from interface:CMAttributeDeclarationReturns the declared attribute local name.- Specified by:
getLocalNamein interfaceCMAttributeDeclaration- Returns:
- the declared attribute local name.
-
getNamespace
public String getNamespace()
Description copied from interface:CMAttributeDeclarationReturns the target namespace and null otherwise.- Specified by:
getNamespacein interfaceCMAttributeDeclaration- Returns:
- the target namespace and null otherwise.
-
getOwnerElementDeclaration
public CMElementDeclaration getOwnerElementDeclaration()
Description copied from interface:CMAttributeDeclarationReturns the owner element declaration.- Specified by:
getOwnerElementDeclarationin interfaceCMAttributeDeclaration- Returns:
- the owner element declaration.
-
getDefaultValue
public String getDefaultValue()
Description copied from interface:CMAttributeDeclarationReturns the default value of the declared attribute and null otherwise.- Specified by:
getDefaultValuein interfaceCMAttributeDeclaration- Returns:
- the default value of the declared attribute and null otherwise.
-
getAttributeNameDocumentation
public String getAttributeNameDocumentation(ISharedSettingsRequest request)
Description copied from interface:CMAttributeDeclarationReturns formatted documentation of the declared attribute according to settings defined inrequest- Specified by:
getAttributeNameDocumentationin interfaceCMAttributeDeclaration- Parameters:
request- the request that contains settings- Returns:
- formatted documentation of the declared attribute according to
settings defined in
request
-
getAttributeValueDocumentation
public String getAttributeValueDocumentation(String value, ISharedSettingsRequest request)
Description copied from interface:CMAttributeDeclarationReturns formatted documentation aboutvalue, according to settings defined inrequest- Specified by:
getAttributeValueDocumentationin interfaceCMAttributeDeclaration- Parameters:
value- the attribute value to find documentation forrequest- the request containing settings- Returns:
- formatted documentation about
value, according to settings defined inrequest
-
isRequired
public boolean isRequired()
Description copied from interface:CMAttributeDeclarationReturns true if the attribute is required and false otherwise.- Specified by:
isRequiredin interfaceCMAttributeDeclaration- Returns:
- true if the attribute is required and false otherwise.
-
getEnumerationValues
public Collection<String> getEnumerationValues()
Description copied from interface:CMAttributeDeclarationReturns enumeration values of the declared attribute and empty collection otherwise.- Specified by:
getEnumerationValuesin interfaceCMAttributeDeclaration- Returns:
- enumeration values of the declared attribute and empty collection otherwise.
-
-