public final class DnsNameWithPortRangeValue extends StringParseableValue<String>
StringParseableValue.Factory<AV extends AttributeValue>
SimpleValue.BaseFactory<AV extends AttributeValue>
value
Constructor and Description |
---|
DnsNameWithPortRangeValue(String val)
Returns a new
DNSNameAttributeValue that represents the name indicated by the String provided. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
printXML()
Converts the internal value (accessible via
SimpleValue.getUnderlyingValue() to a valid lexical representation for XML marshalling. |
getXmlAttributes
getContent, getUnderlyingValue, toString
public DnsNameWithPortRangeValue(String val) throws IllegalArgumentException
DNSNameAttributeValue
that represents the name indicated by the String
provided.val
- a string representing the nameIllegalArgumentException
- if format of val
does not comply with the dnsName datatype definitionpublic int hashCode()
hashCode
in class SimpleValue<String>
public boolean equals(Object obj)
equals
in class SimpleValue<String>
public String printXML()
SimpleValue.getUnderlyingValue()
to a valid lexical representation for XML marshalling. Equivalent to the 'printMethod' in JAXB 'javaType' binding
customizations. Implementations of this typically call DatatypeConverter
. This method is called by SimpleValue.getContent()
and its result cached by the same method for later use.
Therefore, no need to cache the result in the implementation.printXML
in class SimpleValue<String>
Copyright © 2012–2020. All rights reserved.